package com.bjc.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bjc.base.bean.TreeVO;
import com.bjc.base.core.BaseServiceImpl;
import com.bjc.base.core.IBaseDao;
import com.bjc.core.bean.request.RolePermissionReqVO;
import com.bjc.core.bean.response.RolePermissionVO;
import com.bjc.core.dao.IRolePermissionDao;
import com.bjc.core.service.IRolePermissionService;

/**
 * 角色权限Service
 * 
 * @author 许自辉
 * @date 2017年7月24日 下午3:35:08
 */
@Service
public class RolePermissionImpl extends BaseServiceImpl<RolePermissionReqVO,RolePermissionVO> implements IRolePermissionService {

	private IRolePermissionDao rolePermissionDao;

	@Autowired
	@Override
	public void setBaseDao(IBaseDao<RolePermissionReqVO,RolePermissionVO> baseDao) {
		this.baseDao = baseDao;
		this.rolePermissionDao = (IRolePermissionDao) baseDao;
	}
	
	@Override
	public List<TreeVO> getTree(RolePermissionReqVO permissionReqVO) {
		return rolePermissionDao.getTree(permissionReqVO);
	}

	@Override
	public void deleteDestroy() {
		rolePermissionDao.deleteDestroy();
	}

	
}
